DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomContextCollection Class / Add Method / Add(String,IEnumerable<String>) Method

The string value of proposed AbstractSyntax

The list of proposed TransferSyntaxes for that Presentation Context.







In This Topic
    Add(String,IEnumerable<String>) Method
    In This Topic
    Adds a DicomContext to a DicomContextCollection, together with a list of proposed TransferSyntax for the Presentation Context
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal AbstractSyntax As System.String, _
       ByVal TransferSyntaxes As System.Collections.Generic.IEnumerable(Of String) _
    ) As DicomContext
    'Usage
     
    
    Dim instance As DicomContextCollection
    Dim AbstractSyntax As System.String
    Dim TransferSyntaxes As System.Collections.Generic.IEnumerable(Of String)
    Dim value As DicomContext
     
    value = instance.Add(AbstractSyntax, TransferSyntaxes)
    public DicomContext Add( 
       System.string AbstractSyntax,
       System.Collections.Generic.IEnumerable<string> TransferSyntaxes
    )
    public function Add( 
        AbstractSyntax: System.String;
        TransferSyntaxes: System.Collections.Generic.IEnumerable
    ): DicomContext; 
    public function Add( 
       AbstractSyntax : System.String,
       TransferSyntaxes : System.Collections.Generic.IEnumerable
    ) : DicomContext;
    public: DicomContext* Add( 
       System.string* AbstractSyntax,
       System.Collections.Generic.IEnumerable<string*>* TransferSyntaxes
    ) 
    public:
    DicomContext^ Add( 
       System.String^ AbstractSyntax,
       System.Collections.Generic.IEnumerable<String^>^ TransferSyntaxes
    ) 

    Parameters

    AbstractSyntax

    The string value of proposed AbstractSyntax

    TransferSyntaxes

    The list of proposed TransferSyntaxes for that Presentation Context.

    Return Value

    Remarks

    Note that in keeping with the DICOM requirement, newly added contexts have odd values, so adding two items to a DicomContexts collection using this method will create item numbers 1 and 3, not 1 and 2.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also